<!--
描述：代码审查示例页面
作者：吕凯 <253044554@qq.com> 2021-6-29 13:49:08
-->
<!DOCTYPE html>
<html>
<head>
	<title>代码在线审查</title>
	<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />	
	<meta name="keywords" content="代码在线审查">
	
	<!-- Bootstrap Core CSS -->
	<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	<link href="../src/touchnote.css?20210421115725" rel="stylesheet">
	<link href="css/layer-custom.css?20210421115725" rel="stylesheet">
	<link href="css/codereview.css?20210421115725" rel="stylesheet">
	
	<style type="text/css">

	</style>
</head>

<body>
	<div class="container">
		<nav class="navbar navbar-default navbar-fixed-top">
		  	<div class="container-fluid panel-heading">
		    	<form class="form-inline" role="form" autocomplete="off">
					<label style="margin-right: 12px;"><strong style="font-size: 16px">代码在线审查</strong></label>

					<!--选择脚本风格代码-->
					<label for="themeselect">主题：</label>	
			     	<select id='themeselect' class="form-control">
			          	<option >default</option>
						<option >a11y-dark</option>
						<option >a11y-light</option>
						<option >agate</option>
						<option >an-old-hope</option>
						<option >androidstudio</option>
						<option >arduino-light</option>
						<option >arta</option>
						<option >ascetic</option>
						<option >atelier-cave-dark</option>
						<option >atelier-cave-light</option>
						<option >atelier-dune-dark</option>
						<option >atelier-dune-light</option>
						<option >atelier-estuary-dark</option>
						<option >atelier-estuary-light</option>
						<option >atelier-forest-dark</option>
						<option >atelier-forest-light</option>
						<option >atelier-heath-dark</option>
						<option >atelier-heath-light</option>
						<option >atelier-lakeside-dark</option>
						<option >atelier-lakeside-light</option>
						<option >atelier-plateau-dark</option>
						<option >atelier-plateau-light</option>
						<option >atelier-savanna-dark</option>
						<option >atelier-savanna-light</option>
						<option >atelier-seaside-dark</option>
						<option >atelier-seaside-light</option>
						<option >atelier-sulphurpool-dark</option>
						<option >atelier-sulphurpool-light</option>
						<option >atom-one-dark-reasonable</option>
						<option >atom-one-dark</option>
						<option >atom-one-light</option>
						<option >brown-paper</option>
						<option >atom-one-light</option>
						<option >brown-paper</option>
						<option >brown-papersq</option>
						<option >codepen-embed</option>
						<option >darcula</option>
						<option >dark</option>
						<option >docco</option>
						<option >dracula</option>
						<option >far</option>
						<option >foundation</option>
						<option >github-gist</option>
						<option >github</option>
						<option selected="selected">gml</option>
						<option >googlecode</option>
						<option >gradient-dark</option>
						<option >grayscale</option>
						<option >gruvbox-dark</option>
						<option >gruvbox-light</option>
						<option >hopscotch</option>
						<option >hybrid</option>
						<option >idea</option>
						<option >ir-black</option>
						<option >isbl-editor-dark</option>
						<option >isbl-editor-light</option>
						<option >kimbie.dark</option>
						<option >kimbie.light</option>
						<option >lightfair</option>
						<option >magula</option>
						<option >mono-blue</option>
						<option >monokai-sublime</option>
						<option >monokai</option>
						<option >night-owl</option>
						<option >nord</option>
						<option >obsidian</option>
						<option >ocean</option>
						<option >paraiso-dark</option>
						<option >paraiso-light</option>
						<option >pojoaque</option>
						<option >purebasic</option>
						<option >qtcreator_dark</option>
						<option >qtcreator_light</option>
						<option >railscasts</option>
						<option >rainbow</option>
						<option >routeros</option>
						<option >school-book</option>
						<option >shades-of-purple</option>
						<option >solarized-dark</option>
						<option >solarized-light</option>
						<option >srcery</option>
						<option >sunburst</option>
						<option >tomorrow-night-blue</option>
						<option >tomorrow-night-bright</option>
						<option >tomorrow-night-eighties</option>
						<option >tomorrow-night</option>
						<option >tomorrow</option>
						<option >vs</option>
						<option >vs2015</option>
						<option >xcode</option>
						<option >xt256</option>
						<option >zenburn</option>
						<option >monokai-sublime</option>
			     	</select>
			     	<label for="themeselect">吕大人：2021年07月-开发一组-代码审查</label>
			     	<label class="countnumbers">&nbsp;&nbsp;共&nbsp;<span class="linecount waring"></span>&nbsp;行，
					其中代码：注释：空行=&nbsp;<span 
					class="codelinecount waring"></span>：<span 
					class="notelinecount waring"></span>：<span 
					class="blanklinecount waring"></span></label>
				</form>
		  	</div>
		</nav>
		<div class="row cr-content" style="padding-top: 50px;">
			<div class="col-md-12">
				<div class="panel panel-default" style="margin-bottom:4px;">	

					<div class="panel-body" style="padding: 0;">
						<div  class="row">
							<!-- 代码区 -->
                    		<div class="col-md-10" style="width: 80%;float: left;">
                    			<div class="textarea_ol"><textarea id="sourcecode_line" style="resize:none;" cols="2" rows="10" class="textarea_li" disabled>/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }</textarea></div>
								<!-- data-cvid为审查代码的id -->
								<div id="code-html"  style="" placeholder="输入 HTML 代码……" class="" name="code" rows="11" data-cvid="196532100281663488" 
									data-url-add="${ctxPathA }/codereview/toupd_notes" data-url-upd="${ctxPathA }/codereview/toupd_notes" 
									data-url-del="${ctxPathA }/codereview/notes/del">
<pre><code>/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }

/**
     * 分页获取提交记录
     * 
     * @Title getCommits
     * @author 吕凯
     * @date 2021年6月8日 下午4:03:57
     * @return List&lt;GitChangeModel&gt;
     * @throws IOException
     * @throws GitAPIException
     * 
     */
    public List&lt;GitCommitInfoModel&gt; getPageCommits(HttpServletRequest request, WtGitInfoModel gitinfo, QueryParams params)
            throws IOException, GitAPIException {
        List&lt;GitCommitInfoModel&gt; list = ListUtils.newArrayList();
        if (gitinfo != null) {
            String localPath = gitinfo.getLocalRepository(); // 临时文件夹
            String projectName = gitinfo.getName();

            // 获取git统计数据
            try {
                Integer pageNum = (params.getPageNum() == null || params.getPageNum() &lt;= 0) ? 1 : params.getPageNum();
                params.setPageNum(pageNum);
                list = GitUtil.getGitVersions(localPath, projectName, params);
                log.warn(&quot;统计{}项目提交记录完成！&quot;, projectName);
                setRequestAttriList(request, list); // 放到request中
            } catch (GitAPIException | JgitNologException | IOException e) {
                log.error(&quot;&quot;, e);
            }
        }
        return list;

    }</code></pre>
								</div>
	                    		<div class="scroll_bar_x" style="">
									<div class="back" style=""></div>
									<div class="dragger" style=""></div>
								</div>
                    		</div>
                    		<!-- 备注内容显示区 -->
                     		<div class="col-md-2 notesshow_container_pardiv" style="width: 20%;float: left;padding: 0;padding-right: 30px;overflow: hidden;height: 100%;">
								<div class="notesshow_container_div" style="">
									<div class="alert alert-warning" style="margin: 5px 0;">共<span class="waring notesCount">1</span>条备注信息</div>				
									
								</div>
                     		
                     		</div>

						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 鼠标悬停，备注提示框容器 -->
		<div class="tips_container" style="display: none;"></div>
		<!-- 弹出框 -->
		<div id="addTouchNote" class="modal fade">
			
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h4 class="modal-title" id="addTouchNoteTitle">添加/修改备注</h4>
					</div>
					<div class="modal-body">
						<form class="form-horizontal "  action="${ctxPathA }/codereview/upd_notes" method="post" autocomplete="off" style="">
							<input id="id" name="id" type="hidden" maxlength="100" value="">
							<input type="hidden" name="cvid" id="code_cvid" value=""> 
							<input type="hidden" name="keycode" id="code_notekey" value="">
							<input type="hidden" name="keyid" value=""> 
							<input type="hidden" name="startTag" value=""> 
							<input type="hidden" name="startTagIndex" value=""> 
							<input type="hidden" name="startTextOffset" value=""> 
							<input type="hidden" name="endTag" value=""> 
							<input type="hidden" name="endTagIndex" value=""> 
							<input type="hidden" name="endTextOffset" value=""> 
							<input type="hidden" name="text" value=""> 
							<input type="hidden" name="htmltext" id="code_htmltext" value="">
							<!-- 操作类型，添加、修改等 -->
							<input type="hidden" id="keytype" value="">
							<!-- 原来的keycode，选取重叠时替换用 -->
							<input type="hidden" name="oldkeycode" id="code_htmltext" value="${oldkeycode }">
							<div class="form-group">
								<label for="firstname" class="col-sm-2 control-label">内容</label>
								<div class="col-sm-10">
									<p class="form-control-static showtext"></p>
								</div>
							</div>
							<div class="form-group">
								<label for="lastname" class="col-sm-2 control-label">备注</label>
								<div class="col-sm-10">
									<textarea name="remarks" class="form-control required "></textarea>
								</div>
							</div>							
						</form>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary submitbtn">提交</button>
					</div>
				</div>
			</div>	
			
		</div>
		
	</div>
	<script type="text/javascript" src="js/jquery-1.12.4.min.js?20191016082530"></script>
	<!-- 依赖原数据插件 -->
	<script type="text/javascript" src="js/layer/layer.js"></script>
	<script type="text/javascript" src="js/shieldjs/jquery.metadata.js"></script>
	<script type="text/javascript" src="js/shieldjs/shield.util.js"></script>
	<script type="text/javascript" src="js/shieldjs/formvalidate.js"></script>
	<!-- 依赖form插件【必需】 -->
	<script type="text/javascript" src="js/touchjs.min.js?20210712162526"></script>
	<!-- 代码高亮 -->
	<link rel="stylesheet" id="cssfile" href="https://cdn.staticfile.org/highlight.js/10.1.2/styles/gml.min.css">
	<script src="https://cdn.staticfile.org/highlight.js/10.1.2/highlight.min.js"></script>

	<!-- 鼠标右键，非必需 -->
	<script type="text/javascript" src="js/jquery.contextmenu.r2.js?20190903085211"></script>
	<!-- 时间处理js -->
	<script type="text/javascript" src="https://cdn.staticfile.org/moment.js/2.29.1/moment.min.js" ></script>
	<script type="text/javascript" src="https://cdn.staticfile.org/moment.js/2.29.1/locale/zh-cn.js" ></script>
	<!-- 备注【必需】 -->
	<script type="text/javascript" src="../src/touchnote.js?20210712162526" ></script>
	<!-- cookie操作,主题选择保存，非必需 -->
	<script type="text/javascript" src="js/jquery.cookie.js"></script>	
	<!-- 代码审查 -->
	<script type="text/javascript" src="js/codereview.js?20210713095500" ></script>
	<!-- 弹出框 -->
	<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<!-- touchjs初始化 -->
	<script type="text/javascript" src="js/touchjs-init.js?20210712162526"></script>
</body>
</html>
